<template>
  <div>
    <div class="shop_item">
      <div class="info"><img src="./images/shop/1.jpg" alt="" /></div>
      <div class="content">
        <div class="content_title">
          <span class="main">品牌</span>床前明月光，地上鞋两双
        </div>
        <div class="content_sell">
          <div class="star">
            <img src="./images/stars/star36_on@2x.png" alt="" />
            <img src="./images/stars/star36_on@2x.png" alt="" />
            <img src="./images/stars/star36_on@2x.png" alt="" />
            <img src="./images/stars/star48_half@2x.png" alt="" />
            <img src="./images/stars/star36_off@2x.png" alt="" />
            <span>3.6</span>
          </div>
          <div class="sell">
            <span>月售<span>106</span>单</span>
          </div>
        </div>
        <div class="send">￥<span>20</span>起送/配送费约￥<span>5</span></div>
      </div>
      <div class="footer">
        <div class="footer_title">保&nbsp;准&nbsp;票</div>
        <div class="footer_content">小小专送</div>
      </div>
    </div>
    <div class="shop_item">
      <div class="info"><img src="./images/shop/2.jpg" alt="" /></div>
      <div class="content">
        <div class="content_title">
          <span class="main">品牌</span>床前明月光，地上鞋两双
        </div>
        <div class="content_sell">
          <div class="star">
            <img src="./images/stars/star36_on@2x.png" alt="" />
            <img src="./images/stars/star36_on@2x.png" alt="" />
            <img src="./images/stars/star36_on@2x.png" alt="" />
            <img src="./images/stars/star48_on@2x.png" alt="" />
            <img src="./images/stars/star36_off@2x.png" alt="" />
            <span>4.2</span>
          </div>
          <div class="sell">
            <span>月售<span>180</span>单</span>
          </div>
        </div>
        <div class="send">￥<span>23</span>起送/配送费约￥<span>2</span></div>
      </div>
      <div class="footer">
        <div class="footer_title">保&nbsp;准&nbsp;票</div>
        <div class="footer_content">小小专送</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  setup() {},
};
</script>

<style lang="less">
.shop_item {
  margin-top: 20px;
  display: flex;
  .info {
    flex: 1;
    img {
      width: 95%;
      height: 95%;
    }
  }
  .content {
    flex: 3;
    display: flex;
    flex-direction: column;
    // justify-content: space-between;
    // align-content: center;
    .content_title {
      font-size: 16px;
      font-weight: bolder;
      width: 50%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      margin-bottom: 10px;
      .main {
        background-color: yellow;
        font-size: 12px;
        font-weight: bolder;
        margin: 0 5px;
      }
    }
    .content_sell {
      margin-bottom: 10px;
      display: flex;
      .star {
        img {
          width: 10px;
          height: 10px;
        }
        span {
          color: rgb(241, 166, 4);
          font-size: 14px;
        }
        padding-right: 4px;
      }

      .sell {
        font-size: 12px;
        line-height: 12px;
        padding-top: 3px;
      }
    }
    .send {
      flex: 1;
      font-size: 10px;
    }
  }
  .footer {
    display: flex;
    flex-direction: column;
    color: gray;
    padding: 10px;
    .footer_title {
      margin-bottom: 15px;
      font-size: 14px;
    }
    .footer_content {
      font-size: 8px;
      border: 1px solid rgb(11, 245, 206);
      color: rgb(11, 245, 206);
    }
  }
}
</style>